package com.qfedu.sa.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qfedu.sa.entity.AccountTbl;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;


/**
 * @program: Seata01
 * @description: 持久层 定义操作数据库的方法，接口-AccountTblDao
 * @author: Feri
 * @create: 2024-11-15 08:29:51
 */
public interface AccountTblDao extends BaseMapper<AccountTbl> {

    @Update("update account_tbl set money=money+#{money} where user_id=#{uid}")
    Integer updateMoney(@Param("uid") Integer uid,@Param("money") Integer money);
}